<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>违规登记管理</title>
	<meta name="decorator" content="default"/>
	<link type="text/css" rel="stylesheet" href="${ctxStatic}/css/dmsIllegalRegistrationForm.css" />
	
	<script type="text/javascript" src="${ctxStatic}/jquery/jquery-1.8.3.min.js"></script>
	<link href="${ctxStatic}/jquery-validation/1.11.0/jquery.validate.min.css" type="text/css" rel="stylesheet" />	
	<script src="${ctxStatic}/jquery-validation/1.11.0/jquery.validate.min.js" type="text/javascript"></script>
	
	<script type="text/javascript" src="${ctxStatic}/js/dmsIllegalRegistrationForm.js"></script>
	<script type="text/javascript" src="${ctxStatic}/layer/layer.js"></script>
</head>
<body>
	<ul class="nav nav-tabs">
		<%-- <li><a href="${ctx}/illegalregistration/dmsIllegalRegistration/">违规登记列表</a></li> --%>
		<li class="active"><a href="${ctx}/illegalregistration/dmsIllegalRegistration/form?id=${dmsIllegalRegistration.id}">违规登记<shiro:hasPermission name="illegalregistration:dmsIllegalRegistration:edit">${not empty dmsIllegalRegistration.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="illegalregistration:dmsIllegalRegistration:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/> 
	
	<div class="head_tip">违规登记添加</div><br><br>
	<form:form id="inputForm" modelAttribute="dmsIllegalRegistration" action="${ctx}/illegalregistration/dmsIllegalRegistration/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
		<div class="control-group">
			<label class="control-label">违规日期：</label>
			<div class="controls">
				<input name="illegalDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate m required"
					value="<fmt:formatDate value="${dmsIllegalRegistration.illegalDate}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'%y-%M-%d',isShowClear:false});"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">学号：</label>
			<div class="controls">
				<form:input path="studentNumber" htmlEscape="false" maxlength="20" class="input-xlarge l required" id="studentNumberId" pattern="^[0-9]{5,10}$"/>
				<span class="help-inline"><font color="red" id="msgInfo1">*</font> </span>
				<span class="help-inline"><font>（学号只有5~10位数）</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">违规人姓名：</label>
			<div class="controls">
				<form:input path="illegalPersonName" value="" htmlEscape="false" maxlength="50" class="input-xlarge l" id="illegalPersonNameId" onfocus="this.blur()"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">宿舍号：</label>
			<div class="controls">
				<form:input path="dormitoryNumber" htmlEscape="false" maxlength="20" class="input-xlarge w required" id="dormitoryNumberId" pattern="^[A-Z][0-9]{3}$"/>
				<span class="help-inline"><font color="red" id="msgInfo2">*</font> </span>
				<span class="help-inline"><font>（楼号+宿舍编号（如：A405））</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">违规原因：</label>
			<div class="controls">
				<form:textarea path="illegalReason" htmlEscape="false" rows="3" maxlength="255" class="input-xxlarge l"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">惩罚金额：</label>
			<div class="controls">
				<form:select path="fine" class="input-medium l">
					<form:option value="" label=""/>
					<form:option value="100" label="罚100元"/>
					<form:option value="200" label="罚200元"/>
					<form:option value="300" label="罚300元"/>
					<form:option value="400" label="罚400元"/>
				</form:select>
			</div>
		</div>
		<div class="form-actions form_b">
			<shiro:hasPermission name="illegalregistration:dmsIllegalRegistration:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>